package com.thread.test11;

/**
 * @author bin
 * @date 2025 - 03 -12
 **/
public class MainTest {
    public static void main(String[] args) {
        User user = new User("张三", "AAA");
        User user1 = new User("李四", "BBB");
        Print print = new Print();

        MyRunnble myRunnble = new MyRunnble(user,print);
        MyRunnble myRunnble1 = new MyRunnble(user1,print);

        Thread thread = new Thread(myRunnble);
        Thread thread1 = new Thread(myRunnble1);
        thread.start();
        thread1.start();
    }
}
